package com.yss.adapter.template;

import com.yss.adapter.AdapterExtraInfo;
import lombok.Data;
import org.apache.http.client.config.RequestConfig;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpPost;

@Data
public class IRestAdapterInfo extends AdapterExtraInfo {

    private HttpGet httpGet;

    private HttpPost httpPost;

    // Default Request config
    private RequestConfig requestConfig = RequestConfig.custom()
            .setConnectTimeout(5 * 1000)
            .setSocketTimeout(5 * 1000)
            .setConnectionRequestTimeout(5 * 100)
            .build();

}
